home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
4.2
/
arexx
/
editor
/
oz
/
98-fixjitter
< prev
next >
Wrap
Text File
|
1998-04-16
|
2KB
|
89 lines
/* KillBad.rexx V1.3 -- adds 1 frame to odd length stills & frames */
/* >>> by Aussie -- 1995 M.Holten <<<
To use, simply run the routine, it searches the entire project
*/
call remlib('PROJECT_REXX_PORT')
call addlib('PROJECT_REXX_PORT',0)
test=req_tell("Kill-Bad - by Aussie (pre 4.1)"," Kills jitters by finding odd length"," Stills & Frames, & adds 1 frame.")
if test~=1 then call quit()
/* --- begin --- */
start_loc=croutonspot()
project_end=croutonsinproject()
call sequence()
call quit1()
sequence:
current_spot=-1
foundend=0
founderr1=0
do while foundend~=1
cur_start=0
cur_duration=0
current_spot=current_spot+1
if current_spot>project_end then do
call time('R')
do while (time('E')<0.5)
end
call req_tell("All done. " founderr1 "odd/even errors"," Reached end of project")
call croutonpick(start_loc)
call req_error(" OZ: All done. <<< Kill those little jitters >>")
call quit1
end
/* --- Read clip --- */
call croutonpick(current_spot)
type=croutontype()
/* --- test for clip --- */
if (type="STIL") | (type="FRAM") | (type="MAIN") then do
found=1
Cur_Duration=croutongettag(Duration)
if (cur_duration//4 ~= 0) then do
founderr1=founderr1+1
cur_duration=cur_duration+2
test=croutonsettag(duration,cur_duration)
end
if (cur_duration//4 ~= 0) then do
call time('R')
while (time('E')<0.5)
call req_tell("Problem. Suggest you change duration","of this to an even number!", "Then run this ARexx from here again")
call quit1
end
end
if type="CLIP" then do
Cur_Duration=croutongettag(Duration)
Vprev_duration=cur_duration
Vprevtype=type
Vprevstart=croutongettag(clipstartfield) /* used if next audio locked to clip, not inpoint */
end
end
return
/* ************************************** */
quit:
call req_error(" OZ: <<< Last Operation Canceled >>>")
quit1:
call remlib("PROJECT_REXX_PORT")
exit